User API: support pulse gate calibrations#4859
Merged
Merged
Conversation
lcapelluto
suggested changes
Aug 11, 2020
| return self.append(CZGate(label=label, ctrl_state=ctrl_state), | ||
| [control_qubit, target_qubit], []) | ||
|
|
||
| def add_calibration(self, gate, qubits, schedule): |
Contributor
There was a problem hiding this comment.
Given the comment below, that we have to optionally accept params (I forgot about the case where gate is a str), I'm not sure if it's better to do add_calibration(gate, qubits, schedule, params) or add_calibration(gate, schedule, qubits, params), or even schedule first...
@ajavadia what is the intuitive order, here?
lcapelluto
reviewed
Aug 12, 2020
lcapelluto
reviewed
Aug 13, 2020
lcapelluto
reviewed
Aug 13, 2020
lcapelluto
reviewed
Aug 13, 2020
lcapelluto
reviewed
Aug 13, 2020
lcapelluto
suggested changes
Aug 21, 2020
lcapelluto
reviewed
Aug 21, 2020
lcapelluto
suggested changes
Aug 21, 2020
Contributor
|
I really appreciated seeing the examples you used to have in the tests, would love to see an example in the release notes or documentation somewhere. |
lcapelluto
reviewed
Aug 21, 2020
lcapelluto
approved these changes
Aug 21, 2020
mtreinish
approved these changes
Aug 21, 2020
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements stage 2 after PR #4761
We introduce a new circuit method
add_calibrations.Details and comments
TODO
Fix this: Currently, it works for custom gates but not on the standard gates becausegate.nameerrors for standard gates.